package com.qn.pipeline.filters;

import com.qn.pipeline.context.InstanceBuildContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * 处理器 - 保存模型实例到相关DB表
 *
 * @author QuNing
 * @date 2022/08/29
 */
@Component
public class ModelInstanceSaver implements ContextFilter<InstanceBuildContext> {

    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public boolean handle(InstanceBuildContext context) {
        logger.info("--保存模型实例到相关DB表--");

        // 假装保存模型实例

        return true;
    }
}
